# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=py3-rx
pkgver=3.2.0
pkgrel=1
pkgdesc="Reactive Extensions (Rx) for Python"
url="http://reactivex.io/"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools py3-pytest-runner"
checkdepends="py3-pytest py3-coverage py3-pytest-asyncio"
source="https://github.com/ReactiveX/RxPY/archive/v$pkgver/py3-rx-$pkgver.tar.gz
	python-3.10.patch"
builddir="$srcdir/RxPY-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
08a53344ea374b025e51ebf3a7de5ea4e83c7062d0c9a3370b795a56156c8aa068f2b3415f6e5e9e2424a11bcef53a412fd0667afb0016b58b7d2a741ea1007a  py3-rx-3.2.0.tar.gz
dd4cb1a8abfc3c6ea623b166f3fb1965353351db136bb6dfab4e81a540f8250696419d637d389f76190819be85e4a1b5f649e3025f6e6b7de927f36b4c6941db  python-3.10.patch
"
